package com.cloud.transaction.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cloud.commonapi.model.Goods_info;

import java.util.List;

/**
 * @author 陈楚城
 * @date 2019/9/29 15:03
 */
public interface GoodsService {
    //发布物品
    int add(Goods_info goods_info);
    //查看物品列表
    List<Goods_info> selectgoodslist();
    IPage<Goods_info> selectPage(int pgae,int pagesize);
    //查看物品详情
    Goods_info selectgoodsbyId(Integer goodsId);
    //关键字搜索物品
    List<Goods_info> selectgoodsbykeyword(String keyword);
    //修改物品信息
    int updategoods(Goods_info goods_info);
    //下架物品
    int deletegoods(Integer goosId);
    //查看个人发布的物品
    List<Goods_info> listbyaccountId(Integer accountId);

    //查看个人卖出的物品
    List<Goods_info> listbyorder(Integer accountId);

}
